//
//  BaseRequest.h
//  NBAApp
//
//  Created by 刘意明 on 16/11/30.
//  Copyright © 2016年 Manito. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SuccessBlock) (id success);
typedef void(^FailureBlock) (id failure);
@interface BaseRequest : NSObject
//单利

+ (instancetype)shareInstance;

//基础的网络请求 GRT
-(void)startGetWithURL:(NSString *)url params:(NSDictionary *)params success:(SuccessBlock)seccessBass failure:(FailureBlock)FailureBlock;

//POST
-(void)startPostWithURL:(NSString *)url params:(NSDictionary *)params success:(SuccessBlock)seccessBass failure:(FailureBlock)FailureBlock;
@end
